<?php
session_start();
require_once('config.php');
require_once('lib/database.php');
require_once('lib/user.php');
include_once('lib/my_auth.php');
require_once('lib/page.php');
?>	
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link href="css/style.css" rel="stylesheet" />
	<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
	<?php if(isset($_SESSION['is_logged_in'])){ ?>
		<header>
			<h1>Howdy! <?php echo $_SESSION['username']; ?></h1>
		</header>
		<nav>
			<ul>
				<li><a href='index.php?action=read'>Read </a></li>
				<li><a href='index.php?action=signup'>Create Account</a></li>
				<li><a href='index.php?action=logout'>Log Out</a></li>
			</ul>
		</nav>
	<?php } ?>
	

